cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l